-- GENERATED SPELL FOR [Greater Water Elemental] --


function spell0_25040(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(46983,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25040', 1000, 1)
end

function Sorts_25040(pUnit, Event)
local choix_sorts_25040 = math.random(0, 0)
if choix_sorts_25040 == 0 then
pUnit:RegisterEvent('spell0_25040', 1, 1)
end
end

function mob25040_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25040', math.random(1500, 3000), 1)
end

function mob25040_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25040_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25040_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25040, 1, 'mob25040_Action')
RegisterUnitEvent(25040, 2, 'mob25040_Leave')
RegisterUnitEvent(25040, 3, 'mob25040_Kill')
RegisterUnitEvent(25040, 4, 'mob25040_Die')
